import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { GraphQLModule } from '@nestjs/graphql';
import GraphQLOption from './configs/graphql.option';
import {ScalarModule} from './modules/scalar.module';
import {UserModule} from './modules/user.module';
import {DataBaseModule} from './modules/database.module';
import { ArticleModule } from './modules/article.module';
import { LabelModule } from './modules/label.module';
import { ClassifyModule } from './modules/classify.module';
import { ArticleLabelModule } from './modules/article_label.module';
import { MulterModule } from '@nestjs/platform-express';
import { AttentionModule } from './modules/attention.module';
import { CollectionModule } from './modules/collection.module';
import { CommentModule } from './modules/comment.module';

@Module({
  imports: [
    GraphQLModule.forRoot(GraphQLOption),
    MulterModule.register({
      dest: '/upload',
    }),
    DataBaseModule,ScalarModule,UserModule,ArticleModule,LabelModule,ClassifyModule,
    ArticleLabelModule,AttentionModule,CollectionModule,CommentModule
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
